<%@ page language="java" contentType="text/html; charset=UTF-8"	pageEncoding="UTF-8"%>


<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="robots" content="follow, index" />
<meta name="author" content="iune co." />
<meta name="description"
	content="IUNE有最好的库存管理SaaS软件。以更快更高的准确度，跟进实时数据的访问和库存移动。" />
<meta name="keywords"
	content="库存, 存货管理, 库存管理, 仓库管理, 云ERP, 云逸ERP, 中小型企业云ERP, SaaS ERP软件/系统" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title></title>


<style type="text/css">
td {
	padding: 0px;
	width: 100px;
}

</style>

</head>
<body>



	<div class="container-fluid">

		<div class="row">
			<div class="col-sm-12 col-content">

	<h3>
												<button type="button" class="btn btn-default "
													data-ng-click="Model.goBack()">
													<span class="glyphicon glyphicon-arrow-left"></span> 返回
												</button>
		区域信息管理<small>建立应用树，用于shiro的安全认证、导航菜单和应用启用。</small>
	</h3>
	<hr>
			
				<nav class="nav">
					<ul class="pagination navbar-left buttonBar">
								<li>
									<div class="btn-group" role="toolbar">
										<!-- Split button -->
										<div class="btn-group">
											<button type="button" class="btn btn-info "
												data-ng-disabled="!dataMaster.readonly()"
												data-ng-click="Model.addRoot();">
												<span class="glyphicon glyphicon-plus"></span> 新建地区
											</button>
											  <button type="button" class="btn btn-info dropdown-toggle" 
												  data-ng-disabled="!dataMaster.readonly()"
												  data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
											    <span class="caret"></span>
											    <span class="sr-only">Toggle Dropdown</span>
											  </button>
											  <ul class="dropdown-menu">
											    <li><a href="" data-ng-disabled="dataMaster.currentIndex==null" data-ng-click="Model.addChild('PROVINCE');">新建省/直辖市/自治区</a></li>
											    <li><a href="" data-ng-disabled="dataMaster.currentIndex==null" data-ng-click="Model.addChild('CITY');">新建市</a></li>
											    <li><a href="" data-ng-disabled="dataMaster.currentIndex==null" data-ng-click="Model.addChild('ZONE');">新建区/县</a></li>
											    <li role="separator" class="divider"></li>
											    <li><a href="" data-ng-click="Model.addRoot()">新建地区</a></li>
											  </ul>
										</div>
										<!-- Split button结束 -->
										<button type="button" class="btn btn-default"
											data-ng-disabled="dataMaster.currentIndex==null"
											data-ng-show="dataMaster.readonly()"
											data-ng-click="Model.edit();">
											<span class="glyphicon glyphicon-edit"></span> 修改
										</button>
										<button type="button" class="btn btn-success "
											data-ng-show="!dataMaster.readonly()"
											data-ng-click="Model.save();">
											<span class="glyphicon glyphicon-floppy-save"></span> 保存
										</button>
										<button type="button" class="btn btn-warning "
											data-ng-show="!dataMaster.readonly()"
											data-ng-click="Model.saveCancel();">
											<span class="glyphicon glyphicon-floppy-open"></span> 取消
										</button>
										<button type="button" class="btn btn-default"
											data-ng-show="dataMaster.readonly()"
											data-ng-disabled="!dataMaster.readonly() || dataMaster.currentIndex==null"
											data-ng-click="Model.remove()">
											<span class="glyphicon glyphicon-trash"></span> 删除
										</button>
										<button type="button" class="btn btn-default"
											data-ng-disabled="!dataMaster.readonly()"
											data-ng-click="Model.refresh()">
											<span class="glyphicon glyphicon-refresh"></span> 刷新
										</button>
										<!-- Split button -->
										<div class="btn-group">
										<button type="button" class="btn btn-warning"
											data-ng-disabled="!dataMaster.readonly()"
											data-ng-click="Model.sort()">
											<span class="glyphicon glyphicon-sort"></span> 排序
										</button>
										  <button type="button" class="btn btn-warning dropdown-toggle" 
											  data-ng-disabled="!dataMaster.readonly()"
											  data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
										    <span class="caret"></span>
										    <span class="sr-only">Toggle Dropdown</span>
										  </button>
										  <ul class="dropdown-menu">
										    <li><a href="" data-ng-click="Model.sort('root');">根节点排序</a></li>
										  </ul>
										</div>
										<!-- Split button结束 -->
									</div>
								</li>
					</ul>

						<query-like data="dataMaster" place-holder="模糊查询..."></query-like>

				</nav>

			</div>
		</div>
		
		
		<div class="row">
			<div class="col-sm-4 col-content">
				<div>
					<div tree-view 
						tree-data="dataMaster" 
						checkbox-show="false"
						text-field="regionName" 
						value-field='fID' 
						parent-field='fParent'
						level-field='nodeLevel' 
						kind-field='nodeKind' 
						sub-height='200'
						icon-expression="{'fa-cubes':row.nodeType.value=='REGION','fa-cube':row.nodeType.value=='PROVINCE','fa-list-alt':row.nodeType.value=='CITY','fa-hdd-o':row.nodeType.value=='ZONE'}"
					>
					</div>
				</div>
			</div>
			<div class="col-sm-8 col-content">
				<form class="form-horizontal" name="inventory_fileStorage_single_form">

					<div class="form-group form-group-sm">
						<label 
							class="col-sm-3 control-label">fID</label>
						<div class="col-sm-9">
							<input type="text" class="form-control"
								data-ng-model="dataMaster.rows[dataMaster.currentIndex].fID.value"
								data-ng-readonly="dataMaster.readonly()"
								name="fID">
						</div>
					</div>
					<div class="form-group form-group-sm">
						<label 
							class="col-sm-3 control-label">代码</label>
						<div class="col-sm-9">
							<input type="text" class="form-control"
								data-ng-model="dataMaster.rows[dataMaster.currentIndex].regionCode.value"
								data-ng-readonly="dataMaster.readonly();"
								placeHolder="自动编码" name="regionCode">
						</div>
					</div>
					<div class="form-group form-group-sm has-warning">
						<label 
							class="col-sm-3 control-label">名称</label>
						<div class="col-sm-9">
							<input type="text" class="form-control"
								data-ng-model="dataMaster.rows[dataMaster.currentIndex].regionName.value"
								name="regionName" 
								data-ng-readonly="dataMaster.readonly();">
						</div>
					</div>
					<div class="form-group form-group-sm" data-ng-show="true">
						<label 
							class="col-sm-3 control-label">全路径ID</label>
						<div class="col-sm-9">
							<input type="text" class="form-control"
								data-ng-model="dataMaster.rows[dataMaster.currentIndex].regionFullID.value"
								data-ng-readonly="true"
								name="regionFullID">
						</div>
					</div>
					<div class="form-group form-group-sm" data-ng-show="true">
						<label 
							class="col-sm-3 control-label">全路径编码</label>
						<div class="col-sm-9">
							<input type="text" class="form-control"
								data-ng-model="dataMaster.rows[dataMaster.currentIndex].regionFullCode.value"
								data-ng-readonly="true"
								name="regionFullCode">
						</div>
					</div>
					<div class="form-group form-group-sm" data-ng-show="true">
						<label 
							class="col-sm-3 control-label">全路径名称</label>
						<div class="col-sm-9">
							<input type="text" class="form-control"
								data-ng-model="dataMaster.rows[dataMaster.currentIndex].regionFullName.value"
								data-ng-readonly="true"
								name="regionFullName">
						</div>
					</div>
					<div class="form-group form-group-sm" data-ng-show="false">
						<label class="col-sm-3 control-label">父ID</label>
						<div class="col-sm-9">
							<input type="text" class="form-control"
								data-ng-model="dataMaster.rows[dataMaster.currentIndex].fParent.value"
								data-ng-readonly="true"
								name="fParent">
						</div>
					</div>
					<div class="form-group form-group-sm">
						<label class="col-sm-3 control-label">区号</label>
						<div class="col-sm-9">
							<input type="text" class="form-control"
								data-ng-model="dataMaster.rows[dataMaster.currentIndex].areaCode.value"
								data-ng-readonly="dataMaster.readonly()"
								>
						</div>
					</div>
					<div class="form-group form-group-sm">
						<label class="col-sm-3 control-label">邮政编码</label>
						<div class="col-sm-9">
							<input type="text" class="form-control"
								data-ng-model="dataMaster.rows[dataMaster.currentIndex].postCode.value"
								data-ng-readonly="dataMaster.readonly()"
								>
						</div>
					</div>
					<div class="form-group form-group-sm" data-ng-show="false">
						<label class="col-sm-3 control-label">nodeKind</label>
						<div class="col-sm-9">
							<input type="text" class="form-control"
								data-ng-model="dataMaster.rows[dataMaster.currentIndex].nodeKind.value"
								data-ng-readonly="true"
								name="fParent">
						</div>
					</div>
					<div class="form-group form-group-sm" data-ng-show="false">
						<label class="col-sm-3 control-label">nodeLevel</label>
						<div class="col-sm-9">
							<input type="text" class="form-control"
								data-ng-model="dataMaster.rows[dataMaster.currentIndex].nodeLevel.value"
								data-ng-readonly="true"
								name="fParent">
						</div>
					</div>
					<div class="form-group form-group-sm" data-ng-show="true">
						<label class="col-sm-3 control-label">sortNo</label>
						<div class="col-sm-9">
							<input type="text" class="form-control"
								data-ng-model="dataMaster.rows[dataMaster.currentIndex].sortNo.value"
								data-ng-readonly="true"
								name="fParent">
						</div>
					</div>
					
				<div class="form-group form-group-sm has-warning">
					<label  class="col-sm-3 control-label">类型</label>
					<div class="col-sm-9">
						<select class="form-control" data-ng-init="dataNodeType.rows=[{nodeType:'REGION',nodeTypeLabel:'地区'},{nodeType:'PROVINCE',nodeTypeLabel:'省/直辖市/自治区'},{nodeType:'CITY',nodeTypeLabel:'市'},{nodeType:'ZONE',nodeTypeLabel:'区/县'}]" 
							data-ng-options="o.nodeType as o.nodeTypeLabel for o in dataNodeType.rows"
							data-ng-model="dataMaster.rows[dataMaster.currentIndex].nodeType.value"
							data-ng-disabled="true"
							name="nodeType" required
							>
							
							<option value=''>-- 选择类型 --</option>
						</select>
					</div>
				</div>
	


					
					
				</form>

			</div>

		</div>


	</div>





</body>

</html>

